﻿using System.ComponentModel;

namespace CustAttributeReflection;

/// <summary>
/// 
/// </summary>
public class Student
{
    [Description("this is a hard Test")]
    [CustCompare(true)]
    public int Id { get; set; }

    [CustCompare(true)]
    public string?  Address { get; set; }

    [CustCompare(true)]
    public string? Name { get; set; }
}

public class CustCompareAttribute:Attribute
{
    public CustCompareAttribute(bool isCompare) { 
        this.IsCompare = isCompare;
    }
    public bool IsCompare { get; set; }
}
